<?
require_once '../classes/LoadProperties.php';
$properties = new LoadProperties();
$properties->initErrors();
$listaErrors = $properties->getErrors();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Errore</title>
        <style type="text/css">
            @import url("../css/style.css");
            #errorsDiv
            {
                padding-top: 60px;
                
                font-size: 14px;
            }

        </style>
    </head>
    <body>
        <? if(!isset ($_GET["noHead"]))
            include '../portal/header.php';
        else
        {?>
          <center>
            <a href='javascript:history.go(-1);'><img src='../images/icons/back.ico' height='30' width='30' title='Indietro' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/utente/utente.php?codiceUtente=<?= $_COOKIE['codiceUtente']?>'><img src='../images/icons/PNG/Administrator.png' height='30' width='30' title='<?= $_COOKIE['username']?>' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/portal/newMenu.php'><img src='../images/icons/64/home.png' height='30' width='30' title='Home' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/utente/nuovaClasse.php'><img src='../images/icons/128/school.png' height='30' width='30' title='Nuova classe' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/report/searchStudents.php'><img src='../images/icons/128/people.png' height='30' width='30' title='Studenti' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/testManaging/newArgomento.php?codiceUtente=".$_COOKIE["codiceUtente"] ."'><img src='../images/icons/128/phonebook.png' height='30' width='30' title='Gestione Argomenti' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/testManaging/newQuestion.php'><img src='../images/icons/128/plus.png' height='30' width='30' title='Nuova domanda' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/report/reportQuestions.php'><img src='../images/icons/PNG/Document.png' height='30' width='30' title='Cerca Domande' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/testManaging/newTest_1.php'><img src='../images/icons/128/interact.png' height='30' width='30' title='Nuovo test' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/report/searchTest.php'><img src='../images/icons/128/pencil.png' height='30' width='30' title='Test' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/testManaging/reportLiveTest.php'><img src='../images/icons/128/vault.png' height='30' width='30' title='Test sottomessi' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/testManaging/reportPdfLiveTest.php'><img src='../images/icons/128/world.png' height='30' width='30' title='Verifica test' border='0'/></a>
            <a href='<?= $properties->getPath() ?>/portal/logout.php'><img src='../images/icons/PNG/logout.png' height='30' width='30' title='Logout' border='0'/></a>
        </center>
        <?
        }?>
        <center>
            <div id="errorsDiv">
                <table cellpadding="3">
                    <tr>
                        <th style="color: white;">Attenzione si sono verificati i seguenti errori:</th>
                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    <?
                    $lista = $_GET["lista"];
                    $errori= explode("*", $lista);
                    ?>
                   
                    <? $ind=1;
                    for($i=0; $i<count($errori)-1; $i++)
                    {?>
                    <tr><td colspan="2" style="color: white;"><?= $ind++?>. <?= $listaErrors[$errori[$i]] ?></td></tr>
                        <?
                    }?>
                  
                </table>
            </div>
        </center>
    </body>
</html>

